const BasicLogic = require('../BasicLogic.js');
module.exports = class extends BasicLogic {
  get scope() {

  }
  addAction() {
    this.allowMethods = 'post';
    this.rules = {
      project_name: {
        string: true,
        required: true
      },
      status: {
        int: true,
        required: true
      }
    };
  }
  delAction() {
    this.allowMethods = 'delete';
    this.rules = {
      id: {
        string: true,
        required: true
      }
    };
  }
  deleteFileAction() {
    this.allowMethods = 'delete';
    this.rules = {
      id: {
        string: true,
        required: true
      }
    };
  }
  editAction() {
    this.allowMethods = 'post';
    this.rules = {
      id: {
        string: true,
        required: true
      }
    };
  }
  uploadfilesAction() {
    this.allowMethods = 'post';
    this.rules = {
      project_id: {
        string: true,
        required: true
      }
    };
  }

  downloadAction() {
    this.allowMethods = 'post';
    this.rules = {
      filepath: {
        string: true,
        required: true
      }
    };
  }

  getUploadFileByIdAction() {
    this.allowMethods = 'get';
    this.rules = {
      id: {
        string: true,
        required: true
      }
    };
  }
  getoneAction() {
    this.allowMethods = 'get';
    this.rules = {
      id: {
        string: true,
        required: true
      }
    };
  }
};
